package com;

import java.awt.Color;

public class Car extends Auto {
	private boolean air_condition;
	private boolean cd;

	public Car(int luntai, Color color, double weight, int speed, boolean kt, boolean cd) {
		super(luntai, color, weight, speed);
		this.air_condition = kt;
		this.cd = cd;
	}

	@Override
	public String getState() {
		String s = super.getState();
		s = s + (air_condition ? "有空调\n" : "没有空调\n");
		s = s + (cd ? "有cd\n" : "没有cd\n");
		return s;
	}
}
